package com.qyhl.webtv.module_circle.circle.friend;

import android.content.Context;
import android.widget.ImageView;

import com.qyhl.webtv.commonlib.entity.circle.CircleHomeBean;

import java.util.List;

/**
 * Created by qyhl on 2018/1/23.
 */

public interface FriendMomentContract {
    interface FriendView {
        void setRecFriends(List<CircleHomeBean.User> beanList);

        void setContent(List<CircleHomeBean> beanList, boolean isMore);

        void setRecError();

        void setNetError(String msg);

        void setError(String msg);

        void setEmpty(String msg);

        void setLog(String msg);

        void showMessage(String msg);

        void followSuccess(ImageView imageView, int position);

        void followError(String msg, ImageView imageView);

        void unFollowSuccess(ImageView imageView, int position);

        void unFollowError(String msg, ImageView imageView);

        void commentSuccess(int id, String msg, int code);

        void commentError(String msg);
    }

    interface FriendPresenter {
        void getRecFriends();

        void getContent(String lastId);

        void setRecFriends(List<CircleHomeBean.User> beanList);

        void setContent(List<CircleHomeBean> beanList, boolean isMore);

        void setRecError();

        void setError(int code, String msg);

        void doFollow(String dstUserName, ImageView imageView, int position);

        void undoFollow(String dstUserName, ImageView imageView, int position);

        void followSuccess(ImageView imageView, int position);

        void followError(String msg, ImageView imageView);

        void unFollowSuccess(ImageView imageView, int position);

        void unFollowError(String msg, ImageView imageView);

        void sendComment(String topicId, String content, String dstUsername);

        void commentSuccess(int id, String msg, int code);

        void commentError(String msg);


        String getCoin(Context context);

    }

    interface FriendModel {
        void getRecFriends();

        void getContent(String lastId);

        void doFollow(String dstUserName, ImageView imageView, int position);

        void undoFollow(String dstUserName, ImageView imageView, int position);

        void sendComment(String topicId, String content, String dstUsername);

        String getCoin(Context context);
    }
}
